package com.tcheung.entity;

/**
 * IDFEntity
 *
 * @author: zhangteng
 * @time: 2014/11/29 17:48
 */
public class TFIDFEntity {

    private int docNum;

    private String keyWord;

    private Double tfidf;

    public TFIDFEntity(int docNum, String keyWord, Double tfidf) {
        this.docNum = docNum;
        this.keyWord = keyWord;
        this.tfidf = tfidf;
    }

    public int getDocNum() {
        return docNum;
    }

    public void setDocNum(int docNum) {
        this.docNum = docNum;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public Double getTfidf() {
        return tfidf;
    }

    public void setTfidf(Double tfidf) {
        this.tfidf = tfidf;
    }

    @Override
    public String toString() {
        return docNum + "\t" + String.format("%.4f", tfidf) + "\t" + keyWord;
    }

    public String toString1() {
        return keyWord + "\t" + String.format("%.4f", tfidf) + "\t" + docNum;
    }
}
